package com.example.mapper;


import com.example.entity.SysEmployee;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SysEmployeeMapper {
    List<SysEmployee> selectAll(SysEmployee sysEmployee);

    void insert(SysEmployee sysEmployee);

    void update(SysEmployee sysEmployee);

    @Delete("delete from `employee` where id=#{id}")
    void delete(Integer id);

    @Select("select * from sys_employee where username = #{username}")
    SysEmployee selectbyusername(String username);
}
